//
// Created by Wei on 2022/5/16.
//
#include "file_header.h"

unsigned int FILE_HEADER::getFilPageSpaceOrChecksum() const {
    return FIL_PAGE_SPACE_OR_CHECKSUM;
}

void FILE_HEADER::setFilPageSpaceOrChecksum(unsigned int filPageSpaceOrChecksum) {
    FIL_PAGE_SPACE_OR_CHECKSUM = filPageSpaceOrChecksum;
}

unsigned int FILE_HEADER::getFilPageOffset() const {
    return FIL_PAGE_OFFSET;
}

void FILE_HEADER::setFilPageOffset(unsigned int filPageOffset) {
    FIL_PAGE_OFFSET = filPageOffset;
}

unsigned int FILE_HEADER::getFilePagePrev() const {
    return FILE_PAGE_PREV;
}

void FILE_HEADER::setFilePagePrev(unsigned int filePagePrev) {
    FILE_PAGE_PREV = filePagePrev;
}

unsigned int FILE_HEADER::getFilPageNext() const {
    return FIL_PAGE_NEXT;
}

void FILE_HEADER::setFilPageNext(unsigned int filPageNext) {
    FIL_PAGE_NEXT = filPageNext;
}

unsigned int FILE_HEADER::getFilPageType() const {
    return FIL_PAGE_TYPE;
}

void FILE_HEADER::setFilPageType(unsigned int filPageType) {
    FIL_PAGE_TYPE = filPageType;
}

unsigned int FILE_HEADER::getFilPageParent() const {
    return FIL_PAGE_PARENT;
}

void FILE_HEADER::setFilPageParent(unsigned int filPageParent) {
    FIL_PAGE_PARENT = filPageParent;
}

//const unsigned char *FILE_HEADER::getFilPageArchLogNoOrSpaceId() const {
//    return FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID;
//}
//void FILE_HEADER::setFilPageArchLogNoOrSpaceId(const unsigned char *spaceid) {
//    for (int i = 0; i < 4; i++) {
//        FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID[i] = spaceid[i];
//    }
//}